package com.thomas.nio;

import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;

/**   
* @Description: TODO(用一句话描述该文件做什么) 
* @author thomas_liu  
* @date 2018年4月13日 上午10:13:22 
* @version V1.0   
*/
public class TimeServerHandlerExecutePool {
	
	private ExecutorService executor;
	
	public TimeServerHandlerExecutePool() {
		super();
	}

	


	/**
	 * 
	 */
	public TimeServerHandlerExecutePool(int maxPoolSize,int queueSize) {
		super();
//		executor = new ThreadPoolExecutor(Runtime.getRuntime(), maxPoolSize, 120L, TimeUnit.SECONDS, new ArrayBlockingQueue<E>(queueSize));
//		executor = new ThreadPoolExecutor(Runtime.getRuntime(), maxPoolSize, 120L, TimeUnit.SECONDS, null);
	}




	public void execute(Runnable task) {
		executor.execute(task);
	}
	
	
	

}
